export default {
    namespaced: true,
    state: {
        list: [],
        order_id:localStorage.getItem('orderId') || ''
       
    },
    getters: {

    },
    mutations: {
        initOrder(state, data) {
            state.list = data;
            // console.log(data[0].order_id);
            state.order_id = data[0].order_id;
            // order_id = data[0].order_id;
            localStorage.setItem('orderId',data[0].order_id)
            // console.log(data[0].order_id);
        }
    },
    actions: {

    }

}